<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<div id="data"></div>
	</body>
</html>
<style>
	#data{
		width: 150px;
		height: 50px;
		border: 1px solid #BBBBBB;
		text-align: center;
		font-size: 14px;
		line-height: 22px;
		
	}
</style>
<script>
function time(){
	var d1 = new Date();
	var hour=d1.getHours();
	var minute =d1.getMinutes();
	var year = d1.getFullYear();
	var month=d1.getMonth()+1;
	var date1=d1.getDate();
	var day=d1.getDay();
	switch(day){
		case 0:week="星期日";break;
		case 1:week="星期一";break;
		case 2:week="星期二";break;
		case 3:week="星期三";break;
		case 4:week="星期四";break;
		case 5:week="星期五";break;
		case 6:week="星期六";break;
	}
	var str=hour+":"+minute+"<br />";
	str+=year+"/"+month+"/"+date1+"&nbsp;"+week;
	document.getElementById("data").innerHTML=str;
}
setInterval("time()",1000)
</script>